<div style="width: 870px; background-color: #DEE5E9; padding: 5px;" align="left">
	<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
		<table style="font-size: 9px;" width="100%">
			<tr>
				<td width="150">
					CONGRESS
				</td>
				<td>
				
					<?php
						$allCongress = getAllCongress();
					?>
					<select style="width:300px;" onchange="this.form.submit();" name="ID_CONGRESS">
						<option></option>
						<?php while ($congress_row = mysql_fetch_assoc($allCongress)) { ?>
							<option value="<?php echo $congress_row['ID_CONGRESS']; ?>"
								<?php if ($congress_row['ID_CONGRESS'] == getValor('ID_CONGRESS')) { echo "selected='selected'";} ?> >
								<?php echo $congress_row['NAME']; ?>
							</option>
						<?php } ?>
					</select>
				</td>
				<?php if (getValor('ID_CONGRESS') != "" && strstr($_SERVER['PHP_SELF'], "congress_edit.php")) { ?>
				<td>
					<input type="button" value="Delete Congress" onclick="if (confirm('Are you sure you want to delete the congress?')) { window.location='congress_delete.php?ID_CONGRESS=<?php echo getValor('ID_CONGRESS');  ?>'; }" />
				</td>
				<?php } ?>
			</tr>
		</table>
	</form>
</div>
